 const getList=()=>{
    const data=[{
        id: 1,
        name: "纸巾",
        price: '12',
        number: 12,
        mainImage:12,
    },
    {
        id: 2,
        name: "纸巾",
        price: '12',
        number: 12,
         mainImage:12,
    },
    {
        id: 3,
        name: "纸巾",
        price: '12',
        number: 12,
         mainImage:12,
    }
];
   return  data;
}
export const loadProduct=payLoad=>async dispatch=>{
    console.log("haohao的的")
    console.log(payLoad)
    const res= await getList();
    console.log(res)
    dispatch({
        type:"product_load",
        payload: res
    });
}